package demo2;

public class Bird extends Animal implements IFly,IRun {
    public Bird(String name) {
        super(name);
    }
    public void eat() {
        System.out.println(this.name + "正在吃鸟粮...");
    }
    public void run() {
        System.out.println(this.name + "正在用小脚杆跑...");
    }
    public void fly() {
        System.out.println(this.name + "正在用小翅膀飞...");
    }
}
